﻿<%@ Page Language="C#" MasterPageFile="~/ExoticCarRental.Master" AutoEventWireup="true" CodeBehind="MyReservations.aspx.cs" Inherits="ExoticCarRental.MyReservations" Title="My Reservations" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <style type="text/css">
        .style28
        {
            font-weight: normal;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="cpMainContent" runat="server">
    <b>My Reservations&nbsp;<span class="style28"><br />
    <br />
    Email Address:&nbsp;&nbsp;&nbsp;&nbsp;
    <asp:Label ID="lblEmail" runat="server"></asp:Label>
    <br />
    </span><asp:GridView ID="grdReservations" runat="server" BackColor="White" 
        BorderColor="#DEDFDE" BorderStyle="None" BorderWidth="1px" CellPadding="4" 
        ForeColor="Black" GridLines="Vertical" AutoGenerateColumns="False" 
    onselectedindexchanged="grdReservations_SelectedIndexChanged">
        <RowStyle BackColor="#F7F7DE" />
        <Columns>
            <asp:BoundField DataField="reservation_id" HeaderText="ID" ReadOnly="True" />
            <asp:BoundField DataField="Status" HeaderText="Status" NullDisplayText="open" 
                ReadOnly="True" />
            <asp:BoundField DataField="pickup_date" DataFormatString="{0:dd-MMM-yyyy}" 
                HeaderText="Pickup Date" ReadOnly="True" />
            <asp:BoundField DataField="dropoff_date" DataFormatString="{0:dd-MMM-yyyy}" 
                HeaderText="Drop off date" ReadOnly="True" />
            <asp:BoundField DataField="ccard_no" HeaderText="Card #" ReadOnly="True" />
            <asp:BoundField DataField="ccard_type" HeaderText="Card Type" ReadOnly="True" />
            <asp:BoundField DataField="category_name" HeaderText="Category" 
                ReadOnly="True" />
            <asp:BoundField DataField="Location" HeaderText="Location" ReadOnly="True" />
            <asp:BoundField DataField="datecreated" DataFormatString="{0:dd-MMM-yyyy}" 
                HeaderText="Date" ReadOnly="True" />
            <asp:HyperLinkField DataNavigateUrlFields="reservation_id" 
                DataNavigateUrlFormatString="myreservations.aspx?id={0}" DataTextField="Delete" 
                HeaderText="Delete" Text="Delete" />
        </Columns>
        <FooterStyle BackColor="#CCCC99" />
        <PagerStyle BackColor="#F7F7DE" ForeColor="Black" HorizontalAlign="Right" />
        <SelectedRowStyle BackColor="#CE5D5A" Font-Bold="True" ForeColor="White" />
        <HeaderStyle BackColor="#6B696B" Font-Bold="True" ForeColor="White" />
        <AlternatingRowStyle BackColor="White" />
    </asp:GridView>
    <br />
    </b>
</asp:Content>
